#ifndef TEACHERWIDGET_H
#define TEACHERWIDGET_H
#include <QDialog>
#include <QWidget>
#include <QStandardItemModel>
#include "teacher.h"
#include "file.h"
#include "modelset.h"
#include "course.h"
#include "teachersubmitcourse.h"
namespace Ui {
class TeacherWidget;
}

class TeacherWidget : public QWidget
{
    Q_OBJECT

public:
    explicit TeacherWidget(QWidget *parent = nullptr);

    ~TeacherWidget();

    void getLoginId(QString loginId);

    void setTeaObject();

private slots:
    void on_btn_exit_clicked();

    void on_btn_check_myinfo_clicked();

    void on_btn_check_score_clicked();

    void on_btn_check_student_info_clicked();

    void on_btn_check_mycourse_clicked();

    void on_btn_submit_course_clicked();

    void on_btn_quit_clicked();

    void on_btn_modify_password_clicked();

    void on_btn_confirm_clicked();

    void on_btn_sort_clicked();

    void sortView(int a);
private:
    Ui::TeacherWidget *ui;
    QStandardItemModel *model;
    file *file1;
    teacher *teaInfo;
    QString loginId;
    modelSet *setM;
    teacherSubmitCourse *submitCourse;
    course *waitToLoadCourse;
    bool flag=0;
};

#endif // TEACHERWIDGET_H
